package com.loadmore.baselibrary.util.ui;

import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;

/**
 * Created by sunleilei on 2017/4/23.
 */

public class ShapeUtil {

    public static Drawable getShape(int solid,float corner) {
        GradientDrawable drawable = new GradientDrawable();
        drawable.setCornerRadius(corner);
        drawable.setColor(solid);
        return drawable;
    }

    public static Drawable getShape(int solid,int stroke,int strokeWidth,float corner) {
        GradientDrawable drawable = new GradientDrawable();
        drawable.setCornerRadius(corner);
        drawable.setColor(solid);
        drawable.setStroke(strokeWidth,stroke);
        return drawable;
    }



}
